package com.ytc.mapper;

import com.ytc.model.Keyword;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 25645
* @description 针对表【my_keyword(书籍关键词)】的数据库操作Mapper
* @createDate 2023-01-08 11:52:14
* @Entity com.ytc.model.Keyword
*/
public interface KeywordMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Keyword record);

    int insertSelective(Keyword record);

    Keyword selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Keyword record);

    //张泽萌：批量新增书籍与关键字的关联关系
    void addBookKeyword(@Param("blId") Integer blId, @Param("list") List<Integer> list);

    //张泽萌：查询关键词
    List<Keyword> queryKeywords();

    int updateByPrimaryKey(Keyword record);
    //柴晓颖：查询关键字关联关系回填
    List<Keyword> queryKeywordsByBookid(Integer bookid);


}
